<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" type="text/css" href="main.css"  />
    <title>Food Truck Portal</title>
  </head>
	<center><h1>Food Truck Portal!</h1></center>
	
    <table>
      <tr>
        <td colspan="2" style="font-weight:bold;"><a href="CreateAccount.html">Create Account</a></td>        
      </tr>
       <tr>
        <td colspan="2" style="font-weight:bold;"><a href="customerlogin.html">Customer login</a></td>        
      </tr>
       <tr>
        <td colspan="2" style="font-weight:bold;"><a href="SearchRoute.html">Search Route</a></td>        
      </tr>
       <tr>
        <td colspan="2" style="font-weight:bold;"><a href="Vendor.html">Vendor Page</a></td>        
      </tr>
       <tr>
        <td colspan="2" style="font-weight:bold;"><a href="VendorLogin.html">Vendor login</a></td>        
      </tr>
    </table>
    
    <form id="form1" method="post" action="main.jsp">
    <%! private int accessCount = 0; 
    	private String strLoc="32+Avenue";
    %>
    <%
    	
    	String streetnum = "";
    	String streetname = "";
   
    	String[] srch = request.getParameterValues("search");
    	if(srch != null)
    	{
    	
    		streetnum = srch[0].split(" ")[0];
    			streetname = srch[0].split(" ")[1];
    			if(streetnum != "" && streetname != "")
    			strLoc = streetnum + "+" + streetname;
    		
    	}
    	accessCount++;
    	
    %>
	
    <table width="100%" border=0 cellpadding=0 cellspacing=0>
    <tr>
    <td colspan=3 class="pagetop">
        <table width=100% border=0>
        <tr>
        <td></td>
        <td valign="bottom" align="right">
            &nbsp; 
           
        </td>
        </tr>
        </table>
        
    </td>
    </tr>
    <tr>
    	<td valign="top" width="20%" class="pageleft" height="600px">
    		<table>
    			<tr><td>Location:</td><td><input type="text" name="search" size="10"></td>
    			<tr><td colspan="2"><input type="submit" value="Search location"/></td></tr>
    		</table>
    		
    	</td>
    	<td valign="top" width="60%">
      	<iframe width="100%" height="600px" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" 
      	src="https://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=<%= strLoc %>,+San+Francisco,+CA&amp;aq=2&amp;oq=32+street+san+f&amp;sspn=0.619419,1.352692&amp;ie=UTF8&amp;hq=&amp;hnear=<%= strLoc %>,+San+Francisco,+California&amp;spn=0.076948,0.169086&amp;t=m&amp;z=13&amp;output=embed">
      	</iframe><br />
      	
    	</td>
    	<td valign="top" width="20%" class="pageright">
       	 	
    	</td>
    </tr>
    <tr>
    	<td colspan=3 class="pagebottom" align="center">
        
        Want to advertise with us?
        
         
    </td>
    </tr>
    </table>
        
    </form>
<body>

</body>
</html>